import api from '@/common/api.js'

const ToggleFocusUser = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/WXUserFocus/ToggleFocusUser',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
	});
};

const GetFocusUser = async (data, success, fail, isShowLoading = true) => {
	return await api.Request({
		url: '/api/services/app/WXUserFocus/GetFocusUser',
		data: data,
		isObj: true,
		isShowLoading: isShowLoading,
		abpSuccess: success,
		abpFail: fail,
		isEncrypt: true
	});
};

export default {
	ToggleFocusUser,
	GetFocusUser
};